﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Monopoly.Domain
{
    public class Company : BoxProperty
    {
        public Company(string Name)
            : base(Name, 15000)
        {
        }

        public int GetRent(int ThrownValue, bool BothCompanies = false)
        {
            return BothCompanies ? ThrownValue * 1000 : ThrownValue * 400;
        }
    }
}
